export function setTextToLink(container, selector, text, url, target = '_blank') {
  const el = Array.from(container.getElementsByClassName(selector)).find(item => {
    return item.innerText.includes(text)
  })
  if (el) {
    el.innerHTML = el.innerText.replace(text, `<a href="${url}" target="${target}" style="vertical-align: baseline;">${text}</a>`)
  }
}